<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="application/msexcel" %>
<!-- 以上这行设定本网页为excel格式的网页 -->
<%
   response.setHeader("Content-disposition","inline; filename=project.xls");
/*    下载的方式： response.setHeader("Content-disposition","attachment; filename=test2.xls");  */
   //以上这行设定传送到前端浏览器时的档名为test1.xls
   //就是靠这一行，让前端浏览器以为接收到一个excel档 
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
	<meta http-equiv="description" content="This is my page"/>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
	<link rel="stylesheet" href="<%=basePath%>../css/index.css"/>
<title>Excel档案呈现方式</title>
  </head>
  
   <table border="1">
            <tr>
            	<td><input type="checkbox" value="" /></td>
                <td >序号</td>
                <td>项目组</td>
                <td>项目进度</td>
                <td>工作类别</td>
                <td>项目名称</td>
                <td>项目情况</td>
                <td>项目开始时间</td>
                <td>交付时间</td>
                <td>项目负责人</td>
                <td>审核人</td>
                <td>客户负责人</td>
                <td>订阅人</td>
                <td>备注说明</td>
			<%--	<c:forEach var="c" items="${column}">
					<th>${c.prop}</th>
				</c:forEach>--%>
            </tr>
		<c:forEach items="${projects2.data}" var="v" >
			<tr class="tr">
				<td><input type="checkbox" value="" /></td>
				<td >${v.id}</td>
				<td>${v.groups}</td>
				<td >${v.progess}</td>
				<td >${v.wType}</td>
				<td >${v.wName}</td>
				<td style="width:16%;height:30%">${v.pdetail}</td>
				<td >${v.sTime}</td>
				<td >${v.eTime}</td>
				<td id="leader">${v.leader}</td>
				<!-- 这是那个下拉多选框  ，将这些值替换到上面的 -->
    			<td>${v.checker}</td>
    			<td>${v.kehuer}</td>
    			<td>${v.others1}</td>
    			<td>${v.remarks}</td>
				<%--<c:forEach var="c" items="${proItems}">
					<c:if test="${c.proid==v.id}">
						<td>${c.value}</td>
					</c:if>
				</c:forEach>--%>
			</tr>
		</c:forEach>
	</table>
  </body>
</html>
